//
//  CNImageBrowserSheetView.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2019/3/22.
//  Copyright © 2019 CSDN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <YBImageBrowser/YBImageBrowser.h>
//#import "YBImageBrowserSheetViewProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface CNImageBrowserSheetView : UIView 

/** The array count must be greater than or equal to 1 */
@property (nonatomic, strong) NSMutableArray<YBIBSheetAction *> *actions;

@property (nonatomic, assign) CGFloat cellHeight;

@property (nonatomic, copy) NSString *cancelText;

@property (nonatomic, assign) CGFloat maxHeightScale;

@property (nonatomic, assign) NSTimeInterval showDuration;
/// 隐藏动画持续时间
@property (nonatomic, assign) NSTimeInterval hideDuration;

/// 背景透明度
@property (nonatomic, assign) CGFloat backAlpha;


/**
 展示
 
 @param view 指定父视图
 @param orientation 当前方向
 */
- (void)showToView:(UIView *)view orientation:(UIDeviceOrientation)orientation;

/**
 隐藏
 
 @param animation 是否带动画
 */
- (void)hideWithAnimation:(BOOL)animation;
@property (nonatomic, copy) id<YBIBDataProtocol>(^currentdata)(void);
@end


NS_ASSUME_NONNULL_END
